<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="得闲技术 Team">
    <meta name="copyright" content="得闲技术">
    <title>管理中心主页 - Powered By 得闲技术</title>
    [#include "/admin/main/resources/list.ftl"/]
    <link href="${base}/resources/admin/css/index.css" rel="stylesheet">
</head>
<body class="admin secondary index">
<main>
    <div class="container-fluid">
        <form id="" class="ajax-form form-horizontal" action="" method="post">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <a href="main/icon" target="_blank">得闲技术</a>
                </div>
                <div class="panel-body">
                    <span class="btn btn-sm btn-link ">${admin.name!}！</span>
                    <span class="btn btn-sm btn-link" style="color:#000000;">
                        欢迎进入得闲技术管理系统！
                    </span>
                </div>

            </div>

            <div class="panel panel-default">
                <div class="panel-heading">
                    系统信息
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-bordered">
                            <tr>
                                <th>最大内存</th>
                                <td>
                                    ${maxMemory}
                                </td>
                                <th>已分配内存</th>
                                <td>
                                    ${totalMemory}
                                </td>
                            </tr>
                            <tr>
                                <th>空闲内存</th>
                                <td>
                                    ${freeMemory}
                                </td>
                                <th>可用内存</th>
                                <td>
                                    ${usableMemory}
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4"></td>
                            </tr>
                            <tr>
                                <th>系统名称</th>
                                <td>
                                    得闲技术 - 后台管理系统
                                </td>
                                <th>系统版本</th>
                                <td>1.0.0</td>
                            </tr>
                            <tr>
                                <th>JAVA版本</th>
                                <td>${javaVersion}</td>
                                <th>JAVA路径</th>
                                <td>${javaHome}</td>
                            </tr>
                            <tr>
                                <th>操作系统构架</th>
                                <td>${osArch}</td>
                                <th>操作系统名称</th>
                                <td>${osName}</td>
                            </tr>
                            <tr>
                                <th>Server信息</th>
                                <td>
                                    <span title="${serverInfo}" data-toggle="tooltip">${serverInfo}</span>
                                </td>
                                <th>Servlet版本</th>
                                <td>${servletVersion}</td>
                            </tr>
                        </table>
                    </div>

                </div>
            </div>
        </form>

    </div>
</main>
<script>
    $().ready(function () {
        $(".section-info").click(function () {
            let href = $(this).find("a").attr("href");
            location.href = href;
        });
    })
</script>
</body>
</html>


